

"""
readline() : 读取文件内容，方式是一行一行的读，类型为字符串一般需要while循环
"""


f = open("a.txt",encoding="utf-8")

while True:
    line = f.readline()
    print(line,end="")
    if not line:
        break
print(type(line))
f.close()